using System;
using System.Xml;
using System.Collections.Generic;

namespace SvnLogStat
{
	public class SvnLogCreater
	{
		private string _path;

		public SvnLogCreater ()
		{
			_path = string.Format ("{0}/logfile.xml", System.AppDomain.CurrentDomain.BaseDirectory);
		}

		public List<SvnLogEntry> GetSvnLogs ()
		{
			var logs = new List<SvnLogEntry> ();
			var xmlDoc = new XmlDocument ();
			try {
				xmlDoc.Load (_path);

				var nodes = xmlDoc.DocumentElement.SelectNodes("//logentry");
				foreach(var node in nodes){
					//todo: create logentry
				}
			} catch (Exception e) {
				Console.WriteLine (e.Message);
			}
			return logs;
		}
	}
}

